package com.leinao.job.model;


import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @Description: 用户算力情况表
 * @Author: guoliangbo
 * @Date :2019/1/18 20:51
 * @version: 1.0
 */
public class AiOrderUserCalculationPower  implements  Serializable {

	/**
	 * 主键id
	 */
	private String id;

	/**
	 * 用户id
	 */
	private String userId;
	/**
	 * 剩余算力数量
	 */
	private BigDecimal surplusCalculationPower;
	/**
	 * 已用算力数量
	 */
	private BigDecimal usedCalculationPower;

	/**
	  * 乐观锁标识
	  */
	private String version;
	/**
	  * 旧乐观锁标识
	  */
	private String oldVersion;

	private String createBy;
	private String updateBy;
	private String createDate;
	private String updateDate;

	public AiOrderUserCalculationPower() {
        super();
        this.surplusCalculationPower = new BigDecimal(0);
        this.usedCalculationPower = new BigDecimal(0);
    }

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getCreateBy() {
		return createBy;
	}

	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}

	public String getUpdateBy() {
		return updateBy;
	}

	public void setUpdateBy(String updateBy) {
		this.updateBy = updateBy;
	}

	public String getCreateDate() {
		return createDate;
	}

	public void setCreateDate(String createDate) {
		this.createDate = createDate;
	}

	public String getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(String updateDate) {
		this.updateDate = updateDate;
	}

    public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public BigDecimal getSurplusCalculationPower() {
		return surplusCalculationPower;
	}

	public void setSurplusCalculationPower(BigDecimal surplusCalculationPower) {
		this.surplusCalculationPower = surplusCalculationPower;
	}

	public BigDecimal getUsedCalculationPower() {
		return usedCalculationPower;
	}

	public void setUsedCalculationPower(BigDecimal usedCalculationPower) {
		this.usedCalculationPower = usedCalculationPower;
	}

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public String getOldVersion() {
		return oldVersion;
	}

	public void setOldVersion(String oldVersion) {
		this.oldVersion = oldVersion;
	}
}